home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
programs
/
megacd1.2
/
install_megacd
next >
Wrap
Text File
|
1997-03-27
|
3KB
|
160 lines
; Installer Script for MegaCD v1.2
; (c) 1997 PirlAGA - pirlaga@ermes.it
; (R) 1997 The Spooky Fellows
(message
"\nMegaCD v1.2"
"\nCopyright 1997 by PirlAGA"
"\npirlaga@ermes.it"
"\n"
"\nPublished by"
"\n.oO The Spooky Fellows Oo."
)
; get the dest dir for MegaCD (create it if it does not exist)
(set MCD_dest
(tackon
(askdir
(prompt "Where should MegaCD be installed?\nA drawer named `MegaCD' will be created there.")
(help @askdir-help)
(default "SYS:")
)
"MegaCD"
)
)
(makeassign "MCDdest"
(pathonly MCD_dest)
(safe)
)
(if (exists "MCDdest:MegaCD")
(+ 1 1)
(makedir
"MCDdest:MegaCD"
(safe)
)
)
;We now have a valid destination, so tell Installer where MegaCD will end up
;so the exit page will be correct.
(set @default-dest MCD_dest)
(complete 10)
;Now we can copy files that don't need to be checked
(copyfiles
(source "MegaCD.guide")
(dest "MCDdest:MegaCD")
(infos)
)
(copyfiles
(source "MegaCD.guide.info")
(dest "MCDdest:MegaCD")
(infos)
)
(complete 20)
(copyfiles
(source "Filez/MegaCDgui")
(dest "MCDdest:MegaCD")
(infos)
)
(copyfiles
(source "Filez/MegaCDgui.info")
(dest "MCDdest:MegaCD")
(infos)
)
(complete 30)
(copyfiles
(source "Filez/MegaCDprefs")
(dest "Sys:Prefs")
(infos)
)
(copyfiles
(source "Filez/MegaCDprefs.info")
(dest "Sys:Prefs")
(infos)
)
;oh, ask some question to the user..
(complete 40)
(set MCDver
(askchoice
(prompt "Select your MegaCD version\nAccording to your Free Mem.\nIt will be copied to C:")
(help @askchoice-help)
(choices "Min 400 Kb Available"
"Med 700 Kb Available")
)
)
(set MCDname (cat "Filez/" (select MCDver "Min" "Med") "/MegaCD"))
(copyfiles
(source MCDname)
(dest "C:")
(infos)
)
(complete 60)
(set MCDTver
(askchoice
(prompt "Select your MegaCDtree version\nAccording to your Free Mem.")
(help @askchoice-help)
(choices "Min 700kb Available"
"Med 1200kb Available"
"Max 1700kb Available")
)
)
(set MCDTname (cat "Filez/" (select MCDTver "Min" "Med" "Max") "/MegaCDtree"))
(copyfiles
(source MCDTname)
(dest "MCDdest:MegaCD")
(infos)
)
(copyfiles
(source "Filez/MegaCDtree.info")
(dest "MCDdest:MegaCD")
(infos)
)
(complete 80)
;let's move old preferences where Maxime told me to put them
(if
(askbool
(prompt "\n\n\nDo you wish to Move Old Prefs to their new location?")
(help "\nIf you are upgrading from v1.1, maybe you already have some custom preference files.\n\nLet me move them from ENVARC: to S:")
(choices "Move" "Do Not Move")
(default 1)
)
(
(run "copy" "Envarc:MegaCD#? S:")
(run "delete" "Envarc:MegaCD#?")
)
)
(copyfiles
(source "Filez/MegaCD.info")
(dest "MCDdest:")
(infos)
)
;done with the install
(complete 100)
;cleanup some shit
(makeassign "MCDdest" (safe))
;and get out. Fuck RamJam, TSF Rulez!!
(exit)